import requests
'''
#获取
url = "https://openapi.baidu.com/oauth/2.0/token?grant_type=authorization_code&code=79b4871e0431244d7cba4b4019b4d011&client_id=UeyMbApSjFZ2KnOrCCiZ0yTFYdPgffDz&client_secret=mD186dHEfRicFBLjrfbLsovPYgY7PSnO&redirect_uri=oob"

payload = {}
headers = {
  'User-Agent': 'pan.baidu.com'
}

response = requests.request("GET", url, headers=headers, data = payload)

print(response.text.encode('utf8'))
'''

import requests

#获取
url = "http://openapi.baidu.com/oauth/2.0/authorize?response_type=token&client_id=TVt69cI4bFaCdVERodvG4AetZ0k62FzL&redirect_uri=https://lingyudongman.com&scope=basic,netdisk"

payload = {}
headers = {
  'User-Agent': 'pan.baidu.com'
}

response = requests.request("GET", url, headers=headers, data = payload)

print(response.text.encode('utf8'))